import request from "@/utils/request";

// 查询收款详情列表
export function listCsmReceiveD(query) {
  return request({
    url: "/machine/csmReceiveD/list",
    method: "get",
    params: query,
  });
}

// 查询收款详情详细
export function getCsmReceiveD(id) {
  return request({
    url: "/machine/csmReceiveD/" + id,
    method: "get",
  });
}

// 新增收款详情
export function addCsmReceiveD(data) {
  return request({
    url: "/machine/csmReceiveD",
    method: "post",
    data: data,
  });
}

// 修改收款详情
export function updateCsmReceiveD(data) {
  return request({
    url: "/machine/csmReceiveD",
    method: "put",
    data: data,
  });
}

// 删除收款详情
export function delCsmReceiveD(id) {
  return request({
    url: "/machine/csmReceiveD/" + id,
    method: "delete",
  });
}

// 查询出库应收数据
export function receiveCkList(query) {
  return request({
    url: "/machine/csmReceiveD/receiveCkList",
    method: "get",
    params: query,
  });
}

// 查询结算应收数据
export function receiveClearList(query) {
  return request({
    url: "/machine/csmReceiveD/receiveClearList",
    method: "get",
    params: query,
  });
}
